﻿@model LCTMoodle.Models.ViewModels.KhoaHocViewModel
@{
    Layout = "~/Views/Shared/_Khung.cshtml";

    ViewData["SiteMap"] = new string[] 
    {
        "Trang chủ", "/",
        "Khóa học", "/KhoaHoc",
        Model.tenKhoaHoc, "/Nhom/" + Model.ma,
        "Quản lý quyền", "/KhoaHoc_NhomQuyen/QuanLyQuyen/" + Model.ma
    };


    string quyen = ((Dictionary<int, string>)Session["Quyen"])[Model.ma];

    bool coTheQuanLyNhom = quyen.IndexOf("|10|") != -1;
}

<link href="~/Content/css/KhoaHoc_NhomQuyen/QuanLyQuyen.css" type="text/css" rel="stylesheet" />

<section class="current-permission-container">
    <section class="permission-container">
        <h2 id="danh-sach-nhom-quyen-tieu-de" class="title">
            Danh sách nhóm quyền
        </h2>
        <section class="permission-list">
            <ul id="danh-sach-nhom-quyen">
                <li>
                    <form id="them-nhom-quyen" action="#">
                        <input name="TenNhomQuyen" type="text" placeholder="Thêm nhóm quyền..." />
                    </form>
                </li>
            </ul>
        </section>
    </section>
    <section id="khung-thanh-vien" class="user-container">
        <h2 id="danh-sach-thanh-vien-tieu-de" class="title">
            Thành viên
        </h2>
        <section id="khung-danh-sach-thanh-vien" class="user-list">
            <form>
                <input id="them-thanh-vien" type="text" placeholder="Thêm thành viên..." />
            </form>
            <ul id="danh-sach-thanh-vien">
                   
            </ul>
            <ul id="danh-sach-tim-kiem">
                
            </ul>
        </section>
    </section>
</section>
<section class="config-permission-container">
    <h2 id="danh-sach-quyen-tieu-de" class="title">
        Danh sách quyền
    </h2>
    <section id="danh-sach-quyen" class="config-permission">

    </section>
</section>

<script src="~/Content/script/KhoaHoc_NhomQuyen/QuanLyQuyen.js" type="text/javascript"></script>
<script>
    maKhoaHoc = '@Model.ma';
</script>